global _main

section .data

LC0:
	db "please input decimalism number:",0Ah,0

LC1:
	db "%d",0

LC2:
	db "the hex number is %x",0

extern _printf,_scanf 
section .text 
_main:
	push ebp
	mov ebp,esp 
	sub esp,0x1000
		
	mov dword [ebp-0x1000],0 ; i
	
	mov dword [esp+0],LC0
	mov eax,0
	call _printf 
	sub esp,4
	
	lea eax,[ebp-0x1000] ; i
	mov dword [esp+4],eax 
	mov dword [esp+0],LC1
	mov eax,0 
	call _scanf 
	sub esp,4 
	
	mov eax,dword [ebp-0x1000] ; i 
	mov dword [esp+4],eax 
	mov dword [esp+0],LC2 
	mov eax,0
	call _printf 
	
	mov eax,0
	leave
	ret
	